﻿using Eqwww.Domain.Models.SystemManage;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace Eqwww.Web.Areas.SystemManage.Models.Module
{
    public class CreateViewModel
    {
        [Required(ErrorMessage = "本项不能为空")]
        [Display(Name = "编码")]
        public string Code { get; set; }

        [Required(ErrorMessage = "本项不能为空")]
        [Display(Name = "名称")]
        public string Name { get; set; }
        [Display(Name = "上级模块")]
        public string ParentId { get; set; }


        [Display(Name = "菜单标识")]
        public bool? MenuMark { get; set; }
        [Display(Name = "链接地址")]
        public string Url { get; set; }

        [Required(ErrorMessage = "本项不能为空")]
        [Display(Name = "图标")]
        public string Icon { get; set; }

        [Required(ErrorMessage = "本项不能为空")]
        [Display(Name = "排序码")]
        public int? SortCode { get; set; }

        [Required(ErrorMessage = "本项不能为空")]
        [Display(Name = "打开方式")]
        public ModuleOpenType? ModuleOpenType { get; set; }

        [Display(Name = "系统模块标识")]
        public bool? IsSystem { get; set; }
    }
}
